<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>我的红包</title>
    <link rel="stylesheet" href="../css/aui.2.0.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/alert.css">
    <link rel="stylesheet" href="../css/red_list.css">
</head>
<body>
<header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">红包列表</div>
</header>
<ul class="aui-list" id="red-list-box">
    <!--<li class="aui-list-item">
        <div class="aui-list-item-inner aui-swipe-handle red-right">
            <div class="product-info">
                <img class="red-product-img" src="../img/4.jpg" alt="">
                <div class="product-info-box">
                    <div class="red-name">这是一首简单的小情歌这是一首简单的小情歌这是一首简单的小情歌</div>
                    <div class="red-price">
                        <span class="price-now">￥ 2100</span>
                        <span class="price-origin">￥ 2300</span>
                    </div>
                    <div class="red-time">2017.8.1-2018.9.1</div>
                </div>
            </div>
            <div class="red-package-box">
                <span class="red-sales">200元</span>
            </div>
        </div>
        <div class="aui-swipe-btn">
            <div class="aui-btn aui-btn-danger red-delete">删除</div>
        </div>
    </li>-->

</ul>
<script id="red-list-template" type="text/x-handlebars-template">
    {{#each this}}
 	<a href="red_package.html?productId={{productId}}" style="display:block;">
      <li class="aui-list-item" data-id="{{id}}">
        <div class="aui-list-item-inner aui-swipe-handle red-right">
            <div class="product-info">
                <img class="red-product-img" src="{{mainImgUrl}}" alt="">
                <div class="product-info-box">
                    <div class="red-name">{{name}}</div>
                    <div class="red-price">
                        <span class="price-now">￥{{price}}</span>
                        <span class="price-origin">￥{{orginPrice}}</span>
                    </div>
                    <div class="red-time">{{time}}</div>
                </div>
            </div>
            <div class="red-package-box">
                <span class="red-sales">{{hongbao}}元</span>
            </div>
        </div>
        <div class="aui-swipe-btn">
            <div class="aui-btn aui-btn-danger red-delete">删除</div>
        </div>
     </li>
   </a>
    {{/each}}
</script>
<script src="../js/jquery-3.0.0.min.js"></script>
<script src="../js/handlebars-v4.0.10.js"></script>
<script src="../js/config.js"></script>
<script src="../js/common.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/function.js"></script>
<script src="../js/api.2.0.js"></script>
<script src="../js/aui-list-swipe.js"></script>

<script src="../js/red_list.js"></script>
<script>
    var swipe = new auiListSwipe(function(ret){

    });
</script>


</body>
</html>